package com.duan.SpringbootMybatis.domain;

import java.util.List;

public class User {

	private String id;
	
	private String userName;
	
	private String passWord;
	
	private Address address;
	
	private List<Order> orderList;





	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", passWord="
				+ passWord + ", address=" + address + ", orderList="
				+ orderList + "]";
	}


	public User(String id, String userName, String passWord, Address address,
			List<Order> orderList) {
		super();
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.address = address;
		this.orderList = orderList;
	}


	public List<Order> getOrderList() {
		return orderList;
	}


	public void setOrderList(List<Order> orderList) {
		this.orderList = orderList;
	}


	public User(){}


	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
}
